<?php

use App\Http\Controllers\AlipayController;
use App\Http\Controllers\DouyinController;
use App\Http\Controllers\ShopProductAlbumController;
use App\Http\Controllers\SqlErrorController;
use App\Http\Controllers\UserController;
use App\Http\Controllers\WechatController;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
Route::get('404', function () {
    return view('404');
})->name('404');
Route::get('user/cache/{id}', [UserController::class, 'cache'])->name('web.user.cache');
Route::get('sqlError/{serialNumber}', [SqlErrorController::class, 'index'])->name('sqlError.index')->whereNumber('serialNumber');
Route::post('alipay/notify', [AlipayController::class, 'notify'])->name('web.alipay.notify');
Route::post('wechat/notify', [WechatController::class, 'notify'])->name('web.wechat.notify');
Route::post('wechat/notifyRefund', [WechatController::class, 'notifyRefund'])->name('web.wechat.notifyRefund');
//保证金退款回调
Route::post('wechat/auctionBailRefund', [WechatController::class, 'auctionBailRefund'])->name('wechat.auctionBailRefund');
//直播保证金退回
Route::post('wechat/zbBailRefund', [WechatController::class, 'zbBailRefund'])->name('wechat.zbBailRefund');
//售后退款回调
Route::post('wechat/afterSaleRefund', [WechatController::class, 'afterSaleRefund'])->name('wechat.afterSaleRefund');
Route::post('douyin/notify', [DouyinController::class, 'notify'])->name('web.douyin.notify');
Route::get('productAlbumDisplay/{serialNumber}', [ShopProductAlbumController::class, 'productAlbumDisplay'])->name('shopProductAlbum.productAlbumDisplay')->whereNumber('serialNumber');
